package com.umbr3lla.main.state.cards;

import java.awt.Graphics;
import java.awt.Image;

import javax.swing.JPanel;

public class Card extends JPanel
{
	public Card(Image cardImage, String name, String type, String cardID,
			int uniqueID, int cost) {
		super();
		this.cardImage = cardImage;
		this.name = name;
		this.type = type;
		this.cardID = cardID;
		this.uniqueID = uniqueID;
		this.cost = cost;
	}

	public Card(String name, String type, String cardID,
			int uniqueID, int cost) {
		this.name = name;
		this.type = type;
		this.cardID = cardID;
		this.uniqueID = uniqueID;
		this.cost = cost;
	}
	

	private Image cardImage=null;
	private String name, type, cardID;
	private int uniqueID;
	private int cost =-1;
	
	
	
	public void paintComponent(Graphics g)
	{
		if(cardImage != null)
			g.drawImage(cardImage, 0, 0, getWidth(), getHeight(), this);
		else{
			g.drawString("name", 5, 10);
			g.drawString("type", 5, 25);
		}
			
	}
	
}
